package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

public interface IPermissionService {
    void save(Permission permission);
    void delete(Long id);
    void update(Permission permission);
    Permission get(Long id);
    List<Permission> listAll();

    PageResult<Permission> query(QueryObject qo);



    void reload();

    List<String> selectByEmployeeId(Long employeeId);

    List<Permission> selectByRoleId(Long roleId);


}
